package com.shk.service;

import com.shk.entity.PageResult;
import com.shk.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void delete(Integer id);

    Map findPermissionIdsAndMenusIdsByRoleId(Integer roleId);

    void update(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Role> findAll();
}
